using System;
namespace DA.AnimGraph.Editor {

    /// <summary>
    /// 添加到创建节点菜单
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, Inherited = false)]
    public class NodeMenuItemAttribute : Attribute {

        public readonly Type agaNodeType; // 用于启动时或数据被修改时查询v节点类型以生成v节点
        public readonly string path; // 为null则不添加入菜单，但还是需要被查询

        public NodeMenuItemAttribute(Type agaNodeType, string path) {
            this.agaNodeType = agaNodeType;
            this.path = path;
        }
    }

}
